package com.swf.common.utils;

import java.io.*;

import org.apache.poi.ss.usermodel.*;

public class FwspoiUtilsTest {
public static void main(String[] args) throws IOException {
	Workbook wb = FwspoiUtils.readExcel("D:/a.xlsx");
	System.out.println("sheets:"+wb.getNumberOfSheets());
	Sheet sheet = wb.getSheetAt(0);
	//System.out.println(sheet.getLastRowNum());
	Cell[][] cells =FwspoiUtils.getCells(sheet);
	for (int i=0;i<cells.length;i++){
		for (int j=0;j<cells[i].length;j++){
			System.out.println(i+"-"+j+":"+cells[i][j]);
		}
	}
}
}
